std::basic_string::empty
From Cppreference
< cpp | string | basic string
| bool empty() const;
| ||
Checks if the string has no characters, i.e. whether begin() == end().
Contents |
Parameters
(none)
Return value
true if the string is empty, false otherwise
Complexity
constant
See also
| returns the number of characters (public member function) | |
| returns the length of the string (public member function) | |